﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace CsharpTrainer.Model.Entities
{
    [DataContract(Namespace = "http://www.masterhaku.com/csharp")]
    public class Person
    {
        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public int Age { get; set; }
    }

    [CollectionDataContract(Name = "Persons", ItemName = "Person", Namespace = "http://www.masterhaku.com/csharp")]
    public class PersonList : Collection<Person> { }
}
